//
//  TPTabBarController.m
//  CloudAtCostPanel
//
//  Created by leonardo on 2017/1/26.
//  Copyright © 2017年 tanpengsccd. All rights reserved.
//

#import "TPTabBarController.h"


#import "TPServersNavController.h"
#import "TPCloudProNavViewController.h"
#import "TPAccoutNavViewController.h"

#import "TPServersViewController.h"
#import "TPCloudProViewController.h"
#import "TPAccountViewController.h"

@interface TPTabBarController ()

@end

@implementation TPTabBarController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    //Servers 服务器状态
    TPServersViewController * serverVC = [TPServersViewController new];
    TPServersNavController * serversNavC = [[TPServersNavController alloc]initWithRootViewController:serverVC];
    serversNavC.title =  @"Servers";
    
    //CloudPro 服务器操作
    TPCloudProViewController * cloudProVC = [TPCloudProViewController new];
    TPCloudProNavViewController * cloudProNavC = [[TPCloudProNavViewController alloc]initWithRootViewController:cloudProVC];
    cloudProNavC.title = @"CloudPro";
    // 其他
    
    
    //Account 账户
    TPAccountViewController * accountVC = [TPAccountViewController new];
    TPAccoutNavViewController * accoutNavC = [[TPAccoutNavViewController alloc]initWithRootViewController:accountVC];
    accoutNavC.title = @"Account";
    
    self.viewControllers = @[serversNavC,
                                cloudProNavC ,
                                accoutNavC
                                ];
    
    
    
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
